package com.rmb.controller;

import com.rmb.mart.entity.api.MartApiCompany;
import com.rmb.mart.entity.userinfo.UserInfo;
import com.rmb.service.CompanyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @ClassName CompanyController
 * @Description 查询用户接口
 * @Author lvshook
 * @Date 2021/1/21 14:37
 * @Version 1.0
 **/
@RestController
@RequestMapping("/rmb/company")
public class CompanyController {

    @Autowired
    private CompanyService companyService;

    /**
     * 查询用户接口
     * @param id
     * @return
     */
    @GetMapping("/findone")
    public List findOne(@RequestParam("id") Long id){
        return companyService.queryById(id);
    }

}
